package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.LampStrategyDao;
import io.wdb.modules.generator.generator.entity.LampStrategyEntity;
import io.wdb.modules.generator.generator.service.LampStrategyService;



@Service("lampStrategyService")
public class LampStrategyServiceImpl implements LampStrategyService {
	@Autowired
	private LampStrategyDao lampStrategyDao;
	
	@Override
	public LampStrategyEntity queryObject(Long id){
		return lampStrategyDao.queryObject(id);
	}
	
	@Override
	public List<LampStrategyEntity> queryList(Map<String, Object> map){
		return lampStrategyDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return lampStrategyDao.queryTotal(map);
	}
	
	@Override
	public void save(LampStrategyEntity lampStrategy){
		lampStrategyDao.save(lampStrategy);
	}
	
	@Override
	public void update(LampStrategyEntity lampStrategy){
		lampStrategyDao.update(lampStrategy);
	}
	
	@Override
	public void delete(Long id){
		lampStrategyDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		lampStrategyDao.deleteBatch(ids);
	}
	
}
